using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CIM.BLL;

namespace CIM.report
{
    public partial class overDueIDCard : Form
    {
        public overDueIDCard()
        {
            InitializeComponent();
            pager1.Connstr = DB.Connstr;
            dataGridView1.AutoGenerateColumns = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ArUser bll = new ArUser(DB.Connstr);
            int day = 30;
            try
            {
                day = int.Parse(textBox1.Text);
            }
            catch { }
            pager1.PagerMgr = bll.getPagerOverdueID(DateTime.Now.AddDays(day));
        }

        private void overDueIDCard_Load(object sender, EventArgs e)
        {
            ArUser bll = new ArUser(DB.Connstr);
            pager1.PagerMgr = bll.getPagerOverdueID(DateTime.Now.AddDays(30));
        }
    }
}